<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    function computed(str){
        var hhh=str.split(" ")
        var hhh1=hhh.join("")
        var hhh2=hhh1.split("")
        hhh2.splice(0,1,"H")
        hhh2.splice(5,1,"W")
        hhh2.splice(13,1,"啊")
        hhh2.reverse()
        var newArr=hhh2.join("")
        console.log(newArr)
    
    }
    computed("hello world 我爱你!")
</script>